package com.softeem.yuedong_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 歌曲表
 * @TableName music
 */
@TableName(value ="music")
@Schema(title = "歌曲信息")
@Data
public class Music implements Serializable {
    /**
     * 歌曲id-PK
     */
    @Schema(title = "歌曲id-PK")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 歌曲名称
     */
    @Schema(title = "歌曲名称")
    private String name;

    /**
     * 歌曲文件的存储地址
     */
    @Schema(title = "歌曲文件的存储地址")
    private String url;

    /**
     * 风格流派(pop,R&B,rock)
     */
    @Schema(title = "风格流派(pop,R&B,rock)")
    private String style;

    /**
     * 持续时长(秒)
     */
    @Schema(title = "持续时长(秒)")
    private Integer duration;

    /**
     * 歌词
     */
    @Schema(title = "歌词")
    private String lrc;

    /**
     * 状态(0-正常,1-下架)
     */
    @Schema(title = "状态(0-正常,1-下架)")
    private Integer status;

    /**
     * 专辑id
     */
    @Schema(title = "专辑id")
    private Integer aid;

    @TableField(exist = false)
    private Album album;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}